package com.imooc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * Created by Administrator on 2020/6/5.
 */

@SpringBootApplication
//扫描mapper通用所在包
@MapperScan(basePackages = "com.imooc.mapper")
//扫描包所在的路径
@ComponentScan(basePackages = {"com.imooc", "org.n3r.idworker"})
//@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
